// Copyright  2004-2008 Backplane Ltd.
//
// This file is part of Ubiquity formsPlayer
//
// Ubiquity formsPlayer is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3 of the License, or (at your
// option) any later version.
//
// Ubiquity formsPlayer is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
// more details.
//
// You should have received a copy of the GNU General Public License
// along with Ubiquity formsPlayer If not, see <http://www.gnu.org/licenses/>.
//	
//
//   Purpose: declaration of .
//   $Id$


#if !defined(EVENT_CONSTANTS_DEFINED)
#define EVENT_CONSTANTS_DEFINED 1

// Formsplayer internal events
const CComBSTR EVENT_FP_VALUECHANGED		= L"fp-valuechanged";
const CComBSTR EVENT_FP_VALUECHANGING		= L"fp-valuechanging";
const CComBSTR EVENT_FP_FOCUSIN				= L"fp-focusin";
const CComBSTR EVENT_FP_FOCUSOUT			= L"fp-focusout";
const CComBSTR EVENT_FP_ACTIVATE			= L"fp-activate";
const CComBSTR EVENT_FP_HINT				= L"fp-hint";
const CComBSTR EVENT_FP_PREVIOUS			= L"fp-previous";
const CComBSTR EVENT_FP_NEXT				= L"fp-next";
const CComBSTR EVENT_FP_PUTVALUE			= L"fp-putvalue";
const CComBSTR EVENT_FP_PUTFOCUS			= L"fp-putfocus";
const CComBSTR EVENT_FP_UIREADY				= L"fp-uiready";
const CComBSTR EVENT_FP_UIREFRESH			= L"fp-uirefresh";

    //4.2 Initialization Events
const CComBSTR EVENT_MODELCONSTRUCT			= L"xforms-model-construct";
const CComBSTR EVENT_MODELCONSTRUCTDONE		= L"xforms-model-construct-done"; //*NEW
const CComBSTR EVENT_READY					= L"xforms-ready"; //*NEW
const CComBSTR EVENT_MODELDESTRUCT			= L"xforms-model-destruct";

//The following events are gone in  the 
//W3C Proposed Recommendation 13 May 2003
const CComBSTR EVENT_MODELINITIALIZE		= L"xforms-model-initialize";
const CComBSTR EVENT_INITIALIZEDONE			= L"xforms-initialize-done";
const CComBSTR EVENT_FORMCONTROLINITIALIZE	= L"xforms-form-control-initialize";


 //   4.3 Interaction Events
const CComBSTR EVENT_NEXT					 = L"xforms-next";
const CComBSTR EVENT_PREVIOUS				 = L"xforms-previous";
const CComBSTR EVENT_FOCUS					 = L"xforms-focus";
const CComBSTR EVENT_HELP					 = L"xforms-help";
const CComBSTR EVENT_HINT					 = L"xforms-hint";
const CComBSTR EVENT_REFRESH				 = L"xforms-refresh";
const CComBSTR EVENT_REVALIDATE				 = L"xforms-revalidate";
const CComBSTR EVENT_RECALCULATE			 = L"xforms-recalculate";
const CComBSTR EVENT_REBUILD				 = L"xforms-rebuild";
const CComBSTR EVENT_RESET					 = L"xforms-reset";
const CComBSTR EVENT_SUBMIT					 = L"xforms-submit";
//    4.4 Notification Events
const CComBSTR EVENT_ACTIVATE			 = L"DOMActivate";
const CComBSTR EVENT_VALUECHANGING		 = L"xforms-value-changing";
const CComBSTR EVENT_VALUECHANGED		 = L"xforms-value-changed";
const CComBSTR EVENT_SELECT				 = L"xforms-select";
const CComBSTR EVENT_DESELECT			 = L"xforms-deselect";
const CComBSTR EVENT_SCROLLFIRST		 = L"xforms-scroll-first";
const CComBSTR EVENT_SCROLLLAST			 = L"xforms-scroll-last";
const CComBSTR EVENT_INSERT				 = L"xforms-insert";
const CComBSTR EVENT_DELETE				 = L"xforms-delete";
const CComBSTR EVENT_VALID				 = L"xforms-valid";
const CComBSTR EVENT_INVALID			 = L"xforms-invalid";
const CComBSTR EVENT_DOMFOCUS_IN		 = L"DOMFocusIn";
const CComBSTR EVENT_DOMFOCUS_OUT		 = L"DOMFocusOut";
const CComBSTR EVENT_READONLY			 = L"xforms-readonly";
const CComBSTR EVENT_READWRITE			 = L"xforms-readwrite";
const CComBSTR EVENT_REQUIRED			 = L"xforms-required";
const CComBSTR EVENT_OPTIONAL			 = L"xforms-optional";
const CComBSTR EVENT_ENABLED			 = L"xforms-enabled";
const CComBSTR EVENT_DISABLED			 = L"xforms-disabled";
const CComBSTR EVENT_SUBMIT_DONE		 = L"xforms-submit-done";
const CComBSTR EVENT_SUBMIT_ERROR		 = L"xforms-submit-error";

const CComBSTR EVENT_INRANGE			 = L"xforms-in-range";
const CComBSTR EVENT_OUTOFRANGE			 = L"xforms-out-of-range";

const CComBSTR EVENT_SELECTED			 = L"xforms-select";
const CComBSTR EVENT_DESELECTED			 = L"xforms-deselect";

// xforms 1.1 action events
const CComBSTR EVENT_DUPLICATE			= L"xforms-duplicate";
const CComBSTR EVENT_DESTROY			 = L"xforms-destroy";

// 4.5 Error Indications
const CComBSTR EVENT_BINDINGEXCEPT		 = L"xforms-binding-exception";
const CComBSTR EVENT_LINKEXCEPT			 = L"xforms-link-exception";
const CComBSTR EVENT_LINKERROR			 = L"xforms-link-error";
const CComBSTR EVENT_COMPUTEEXCEPT		 = L"xforms-compute-exception";

//implementation defined events.
const CComBSTR EVENT_MESSAGE_SHOW		 = L"fp-message-show";
const CComBSTR EVENT_MESSAGE_HIDE		 = L"fp-message-hide";

// Event events.
const CComBSTR EVENT_EVENT_DISPATCHED = L"fp-event-dispatched";
const CComBSTR EVENT_EVENT_COMPLETE	 = L"fp-event-complete";


#endif
